﻿@model RBS.Core.Model.manager

@{
    ViewBag.Title = "AdminUserEdit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<!--导航栏-->
<div class="location">
    <a href="manager_list.aspx" class="back"><i></i><span>返回列表页</span></a>
    <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
    <i class="arrow"></i>
    <a href="manager_list.aspx"><span>管理员</span></a>
    <i class="arrow"></i>
    <span>编辑管理员</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div class="content-tab-wrap">
    <div id="floatHead" class="content-tab">
        <div class="content-tab-ul-wrap">
            <ul>
                <li><a href="javascript:;" onclick="tabs(this);" class="selected">编辑管理员</a></li>
            </ul>
        </div>
    </div>
</div> 
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.id)
    @Html.HiddenFor(model => model.salt) 
    <div class="tab-content">
        <dl>
            <dt>管理角色</dt>
            <dd>
                <div class="rule-single-select">
                    @Html.DropDownListFor(model => model.role_id, (SelectList)ViewBag.role, "请选择角色..", htmlAttributes: new { datatype = "*", errormsg = "请选择管理员角色！", sucmsg = " " })
                    @*角色信息*@
                    @Html.HiddenFor(model => model.role_name)
                    @Html.HiddenFor(model => model.role_type)
                </div>
            </dd>
        </dl>
        <dl>
            <dt>是否启用</dt>
            <dd>
                <div class="rule-single-checkbox"> 
                    <div class="rule-multi-radio">   <label for="is_lock">否</label>
                    @Html.RadioButtonFor(model => model.is_lock, "1", new { @id = "radio1", @name = "abc" }) 
                    <label for="is_lock">是</label>
                    @Html.RadioButtonFor(model =>  model.is_lock, "0", new { @id = "radio2", @name = "abc" })    
	           </div>             
		 
                </div>
                <span class="Validform_checktip">*不启用则无法使用该账户登录</span>
            </dd>
        </dl>
        <dl>
            <dt>用户名</dt>
            <dd>

                @Html.TextBoxFor(model => model.user_name, new { @class = "input normal", datatype = @"/^[a-zA-Z0-9\-\_]{2,50}$/", sucmsg = " ", ajaxurl = Model.id > 0 ? "" : "/tools/admin_ajax.ashx?action=manager_validate" })
                <span class="Validform_checktip">*字母、下划线，不可修改</span></dd>
        </dl>
        <dl>
            <dt>登录密码</dt>
            <dd>
                @Html.Password("txtpassword", null, new { @class = "input normal", datatype = "*6-20", nullmsg = "请设置密码", errormsg = "密码范围在6-20位之间", sucmsg = " ",value=ViewBag.defaultpassword })

                <span class="Validform_checktip">*</span>
            </dd>
        </dl>
        <dl>
            <dt>确认密码</dt>
            <dd>
                @Html.Password("txtPassword1", null, new { @class = "input normal", datatype = "*",recheck="txtpassword", nullmsg = "请再输入一次密码", errormsg = "两次输入的密码不一致", sucmsg = " ",value=ViewBag.defaultpassword })
                 <span class="Validform_checktip">*</span>
                @Html.HiddenFor(model => model.password)
            </dd>
        </dl>
        <dl>
            <dt>姓名</dt>
            <dd>
                @Html.TextBoxFor(model => model.real_name, null, new { @class = "input normal" })
            </dd>
        </dl>
        <dl>
            <dt>电话</dt>
            <dd>

                @Html.TextBoxFor(model => model.telephone, null, new { @class = "input normal" })
            </dd>
        </dl>
        <dl>
            <dt>邮箱</dt>
            <dd>

                @Html.TextBoxFor(model => model.email, null, new { @class = "input normal" })
            </dd>
        </dl>
    </div>
    <!--/内容-->

    <!--工具栏-->
    <div class="page-footer">
        <div class="btn-list">
            <input type="submit" value="提交保存" class="btn" />
            <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript: history.back(-1);" />

        </div>
        <div class="clear"></div>
    </div>
    <!--/工具栏-->
        
}

